class CreateStudents < ActiveRecord::Migration
  def self.up
    create_table :students do |t|
      t.column :user_id, :integer
      t.column :school_id, :integer
      
      t.column :last_name, :string
      t.column :first_name, :string
      t.column :gender, :integer
      t.column :birth, :date
      t.column :enter_school_year, :integer
      t.column :notes, :text
      t.column :notes_html, :text
      
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    drop_table :students
  end
end
